package com.wfg.dao.impl;

import com.wfg.dao.UserDao;
import org.springframework.stereotype.Repository;

import javax.annotation.PostConstruct;

/**
 * spring
 *
 * @Title: com.wfg.dao.impl
 * @Date: 2020/12/28 0028 23:19
 * @Author: wfg
 * @Description:
 * @Version:
 */
@Repository
public class UserDaoImpl implements UserDao {
	public UserDaoImpl() {
		System.out.println(this.getClass()+"构造方法");
	}

	@PostConstruct
	public void init(){
		System.out.println(this.getClass()+"初始化");
	}


	@Override
	public String query() {
		System.out.println("User Dao");
		return "userDao";
	}
}
